<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
<script>

	function imgCreate(flag){
		var list='';
		if(flag=='s'){
			list=document.getElementsByTagName("span");
		}
		else{
			list=document.getElementsByTagName("div");
		}
		for(var i=0;i<list.length;i++){
			list[i].innerHTML="<img src='../imgEx/"+(i+1)+".jpg' width='100' height='100' >";
		}
		
	}
</script>
</head>
<body>
	<img alt="" src="../imgEx/1.jpg" width="100" height="100" onmouseover="imgCreate('s')">
	<span></span><span></span><span></span><span></span>
	<div></div><div></div><div></div><div></div>
</body>
</html>